/****************************************************
          File Name:6-8.cpp
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Fri 19 Dec 2014 03:39:38 PM CST
*****************************************************/

#include<iostream>
#include<fstream>
using namespace std;

int main(int argc, char *argv[])
{
    ifstream  fd;
    char ch;
    int num = 0;

    fd.open(argv[1]);

    while(fd.good() && fd.get(ch))
    {
        num++;
    }

    cout << "There are: " << num << " charactors in file" << endl;

    fd.close();

    return 0;
}
